package com.tuozixuan.camel;

import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;

@Component
public class ToDemoRoute extends RouteBuilder {

	@Override
	public void configure() throws Exception {
		// jms需引入camel-jms依賴
		from("file:messages/foo")
	    .to("jms:queue:foo");
	}

}
